package com.mkb.common;

import com.mkb.utils.WinowUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class WebConstant {
    public static final List<String> InherentEscapeURIS = new ArrayList<String>();

    public static final List<String> INTERCEPT_URIS = new ArrayList<String>();

    public static final String _LAST_LOGINAID = "_last_loginaid";
    public static final String DOMAIN_WINOWS = "127.0.0.1";
    public static final String URL_WINOWS = "http://127.0.0.1:8000/login";
    public static final String DOMAIN_LINUX = "192.168.0.38";
    public static final String URL_LINUX = "http://192.168.0.38:8000/login";


    static {
        InherentEscapeURIS.add("/norights");
        InherentEscapeURIS.add("/error");
        InherentEscapeURIS.add("/logout.html");
    }

    public static final String SESSION_CONTEXT_NAME = "adminContext";
    public static final String ROLE = "roles";//角色


}